package com.example.spring5.designmode.strategy;

import org.springframework.stereotype.Component;

/**
 * @Author: Hu Rui
 * @Date: 2021/11/12 11:26
 */
@Component
public class HttpStrategy implements ConnectStrategy {
    @Override
    public StrategyEnum getStrategyType() {
        return StrategyEnum.HTTP;
    }

    @Override
    public void processStrategy(String resource) {
        System.out.println("http处理" + resource);
    }
}
